package main.Service;

import main.pojo.ChatMessage;

import java.util.List;

public interface ChatMessageService {
    ChatMessage getChatMessageByID(int messageID);
    List<ChatMessage> getChatMessagesByUser(int userID);
    List<ChatMessage> getChatMessagesByChatRoom(int chatRoomID);
    List<ChatMessage> getAllChatMessages();
    Boolean createChatMessage(ChatMessage chatMessage);
    Boolean updateChatMessage(ChatMessage chatMessage);
    Boolean deleteChatMessage(int messageID);
    ChatMessage getChatMessageBySenderIDAndReceiverID(int senderID, int receiverID);
}
